﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AdaptiveAgents.Running_Tools.Agent_Lists
{
    public abstract class AgentList
    {
        protected List<string> _AgantList;
        protected int _Size;
        protected string _Type;

        public AgentList() { _AgantList = new List<string>(); }

        public AgentList(List<string> list, int size, string type)
        {
            _AgantList = list;
            _Size = size;
            _Type = type;
        }

        public AgentList(string type, int size)
        {
            _AgantList = new List<string>();
            _Type = type;
            _Size = size;
        }        

        public List<string> AgentsList
        {
            get { return _AgantList; }
            set { _AgantList = value; }
        }

        public int Size
        {
            get { return _Size; }
            set { _Size = value; }
        }

        public string Type
        {
            get { return _Type; }
            set { _Type = value; }
        }


        public void ChangeAgentType(string type, int index)
        {
            _AgantList[index] = type;
        }

        public abstract void CreateList();
    }
}
